package cn.wink.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author xw
 * @date 2020-05-17 19:40
 */
@EnableFeignClients     //使用feign客户端
@SpringBootApplication
@EnableHystrix  // @EnableHystrix 内包含@EnableCircuitBreaker 二者等效
// @EnableCircuitBreaker // 激活服务熔断
public class OrderFeignHystrix80 {
    public static void main(String[] args) {
        SpringApplication.run(OrderFeignHystrix80.class, args);
    }

}
